#include <functional>
#include <iostream>

void hello()
{
    std::cout << "Hello, World!" << std::endl;
}

int main()
{
    std::function<void()> func = hello;
    func();
    return 0;
}
